<lcnc-ncam>
  <feature src="/home/fernand/nativecam/cfg/plasma/material2d.cfg" after="" help="&lt;b&gt;Workpiece or Raw material used&lt;/b&gt;" old-selected="False" before="" image="square.png" expanded="False" id="workpiece_001" new-selected="False" definitions="" call="&#10;(begin #sub_name)&#10;(workpiece definition author : Fernand Veilleux)&#10;#&lt;wp_width&gt;         = [#&lt;_units_width&gt; * #param_w]&#10;#&lt;wp_length&gt;        = [#&lt;_units_width&gt; * #param_l]&#10;#&lt;wp_depth&gt;         = [#&lt;_units_width&gt; * #param_d]&#10;#&lt;wp_wall&gt;          = [#&lt;_units_width&gt; * #param_wt]&#10;#&lt;wp_corner_radius&gt; = [#&lt;_units_width&gt; * #param_cr]&#10;#&lt;wp_inside_width&gt;  = [#&lt;wp_width&gt; - #&lt;wp_wall&gt; * 2]&#10;#&lt;wp_inside_length&gt; = [#&lt;wp_length&gt; - #&lt;wp_wall&gt; * 2]&#10;&#10;#&lt;wp_x&gt; = #param_x&#10;#&lt;wp_y&gt; = #param_y&#10;&#10;o&lt;select&gt; CALL [31] [#param_alx] [#param_x] [#param_x - #&lt;wp_length&gt; / 2] [#param_x - #&lt;wp_length&gt;]&#10;#&lt;wp_left&gt;  = #31&#10;#&lt;wp_right&gt; = [#&lt;wp_left&gt; + #&lt;wp_length&gt;]&#10;&#10;o&lt;select&gt; CALL [31] [#param_aly] [#param_y - #&lt;wp_width&gt;] [#param_y - #&lt;wp_width&gt; / 2] [#param_y]&#10;#&lt;wp_front&gt; = #31&#10;#&lt;wp_rear&gt;  = [#&lt;wp_front&gt; + #&lt;wp_width&gt;]&#10;&#10;o&lt;select&gt; CALL [31] [#param_alz] [#param_z] [#param_z + #&lt;wp_depth&gt;]&#10;#&lt;surface&gt;  = #31&#10;&#10;#&lt;bottom&gt;   = [#&lt;surface&gt; - #&lt;wp_depth&gt;]&#10;&#10;/&#9;o&lt;#self_id_active&gt; if [#param_sh] (show enabled)&#10;/&#9;&#9;o&lt;stock&gt; CALL [#&lt;wp_left&gt;] [#&lt;wp_right&gt;] [#&lt;wp_front&gt;] [#&lt;wp_rear&gt;] [#&lt;surface&gt;] [#&lt;bottom&gt;] [#param_cl] [#&lt;wp_corner_radius&gt;] [#&lt;wp_wall&gt;]&#10;/&#9;&#9;G0 X#param_x Y#param_y&#10;/&#9;&#9;o&lt;#self_id_has_Z_axis&gt; if [#&lt;_has_z_axis&gt;]&#10;/&#9;&#9;&#9;G0 Z#&lt;surface&gt;&#10;/&#9;&#9;o&lt;#self_id_has_Z_axis&gt; endif&#10;/&#9;o&lt;#self_id_active&gt; endif&#10;(end #sub_name)" path="0" icon="square.png" type="workpiece" order="['PARAM_SH', 'PARAM_H1', 'PARAM_L', 'PARAM_W', 'PARAM_D', 'PARAM_H2', 'PARAM_X', 'PARAM_ALX', 'PARAM_Y', 'PARAM_ALY', 'PARAM_Z', 'PARAM_ALZ', 'PARAM_H4', 'PARAM_CR', 'PARAM_WT', 'PARAM_CL']" name="Workpiece">
    <param tool_tip="Show workpiece" name="Show workpiece" value="0" call="#param_sh" path="0:0" type="bool" icon="glasses.png"/>
    <param tool_tip="Size" call="#param_h1" type="sub-header" name="Size" path="0:1"/>
    <param tool_tip="X axis" no_zero="1" name="Width (X)" metric_value="1016.000" value="40.000" header="h1" call="#param_l" path="0:1:0" minimum_value="0.0" type="float" icon="width.png"/>
    <param tool_tip="Y axis" no_zero="1" name="Height (Y)" metric_value="508.000" value="20.000" header="h1" call="#param_w" path="0:1:1" minimum_value="0.0" type="float" icon="height.png"/>
    <param tool_tip="Z axis" no_zero="1" name="Depth (Z)" metric_value="6.350" value="0.250" header="h1" call="#param_d" path="0:1:2" hidden="1" minimum_value="0.0" type="float" icon="depth.png"/>
    <param tool_tip="Coords" call="#param_h2" type="sub-header" name="Coords" path="0:2"/>
    <param tool_tip="X0" name="X" metric_value="0.000" value="0.000" header="h2" call="#param_x" path="0:2:0" type="float" icon="x.png"/>
    <param tool_tip="Define X reference" name="X axis align" value="0" header="h2" call="#param_alx" path="0:2:1" type="combo" options="Left=0:Center=1:Right=2" icon="align-x.png"/>
    <param tool_tip="Y0" name="Y" metric_value="0.000" value="0.000" header="h2" call="#param_y" path="0:2:2" type="float" icon="y.png"/>
    <param tool_tip="Define Y reference" name="Y axis align" value="2" header="h2" call="#param_aly" path="0:2:3" type="combo" options="Top=0:Center=1:Bottom=2" icon="align-y.png"/>
    <param tool_tip="Surface" name="Z" metric_value="0.000" value="0.000" header="h2" call="#param_z" path="0:2:4" hidden="1" type="float" icon="z.png"/>
    <param tool_tip="Define Z reference" name="Z axis align" value="0" header="h2" call="#param_alz" path="0:2:5" hidden="1" type="combo" options="Top=0:Bottom=1"/>
    <param tool_tip="Options" call="#param_h4" type="sub-header" name="Options" path="0:3"/>
    <param tool_tip="Define radius" name="Corner radius" metric_value="0.000" value="0.000" header="h4" call="#param_cr" path="0:3:0" icon="corner-radius.png" type="float" minimum_value="0.0"/>
    <param tool_tip="Define if hollow" name="Wall thickness" metric_value="0.000" value="0.000" header="h4" call="#param_wt" path="0:3:1" hidden="1" icon="wall-thickness.png" type="float" minimum_value="0.0"/>
    <param tool_tip="Define orientation of centerline" name="Centerline align" value="2" header="h4" call="#param_cl" path="0:3:2" hidden="1" type="combo" options="X axis=0:Y axis=1:Z axis=2"/>
  </feature>
  <feature src="plasma/cutting-params2d.cfg" after="" help="&lt;b&gt;Add cutting parameters&lt;/b&gt;&amp;#10;Changes setting accordingly even if disabled" old-selected="False" before="" expanded="False" id="cut_params2_001" new-selected="False" definitions="" call="&#10;(begin #sub_name)&#10;(changed params and kerf changing code author : Fernand Veilleux)&#10;#&lt;_feed_normal&gt;     = #param_feed&#10;#&lt;_feed_vertical&gt;   = #param_vfeed&#10;#&lt;pl_cut_start&gt;     = #param_cutstart&#10;#&lt;_z_clear&gt;         = #param_zcl&#10;#&lt;_rapid_z&gt;         = [#&lt;surface&gt; + #&lt;_z_clear&gt; + #param_rap]&#10;#&lt;_in_kerf_factor&gt;  = #param_s&#10;#&lt;_out_kerf_factor&gt; = #param_f&#10;#&lt;_pierce_delay&gt;    = #param_delay&#10;&#10;o&lt;#self_id_act&gt; if [#param_act AND [#param_tnum NE #5400]]&#10;&#9;T#param_tnum M6&#10;o&lt;#self_id_act&gt; endif&#10;F#&lt;_feed_normal&gt;&#10;(end #sub_name)" hidden_count="0" path="1" icon="torch.png" type="cut_params2" order="['PARAM_ACT', 'PARAM_H1', 'PARAM_TNUM', 'PARAM_CUTSTART', 'PARAM_S', 'PARAM_F', 'PARAM_DELAY', 'PARAM_H6', 'PARAM_FEED', 'PARAM_VFEED', 'PARAM_H3', 'PARAM_RAP', 'PARAM_ZCL']" name="Cutting Params">
    <param tool_tip="Cutting params will be set even if disabled" name="Active" value="1" call="#param_act" path="1:0" type="bool" icon="enable.png"/>
    <param call="#param_h1" type="sub-header" name="Cut" path="1:1"/>
    <param tool_tip="Select kerf width for compensation" name="Kerf width" value="6" header="h1" call="#param_tnum" path="1:1:0" type="tool" icon="torch.png"/>
    <param tool_tip="Above surface" name="Start height" metric_value="3.0" value="0.100" header="h1" call="#param_cutstart" path="1:1:1" hidden="1" type="float" icon="surface.png"/>
    <param tool_tip="Times kerf" name="Lead in factor" value="2.0" header="h1" call="#param_s" path="1:1:2" icon="lead-in.png" type="float" minimum_value="0.501"/>
    <param tool_tip="Times kerf" name="Lead out factor" value="1.5" header="h1" call="#param_f" path="1:1:3" icon="lead-out.png" type="float" minimum_value="0.501"/>
    <param tool_tip="Wait after torch OK" name="Pierce delay" value="0.25" header="h1" call="#param_delay" path="1:1:4" icon="timer.png" type="float" minimum_value="0.0"/>
    <param call="#param_h6" type="sub-header" name="Feed" path="1:2"/>
    <param name="Normal feed" metric_value="250" value="10" header="h6" call="#param_feed" path="1:2:0" icon="tool-feed.png" type="float" minimum_value="0.0"/>
    <param name="Vertical feed" metric_value="250" value="10" header="h6" call="#param_vfeed" path="1:2:1" hidden="1" icon="tool-vertical-feed.png" type="float" minimum_value="0.0"/>
    <param call="#param_h3" hidden="1" type="sub-header" name="Rapid params" path="1:3"/>
    <param tool_tip="Above Z clear" no_zero="1" name="Rapid (Z)" metric_value="2.5" value="0.1" header="h3" call="#param_rap" path="1:3:0" hidden="1" minimum_value="0.0" type="float" icon="rapid.png"/>
    <param tool_tip="Above cut start" no_zero="1" name="Z clear" metric_value="5.0" value="0.2" header="h3" call="#param_zcl" path="1:3:1" hidden="1" minimum_value="0.0" type="float" icon="safe-z.png"/>
  </feature>
  <feature src="plasma/circle.cfg" expanded="False" help="&lt;b&gt;Create a Circle from it's center&lt;/b&gt;&amp;#10;Can add a flat" name="Circle by Center" old-selected="True" after="" order="['PARAM_ACT', 'PARAM_PV', 'PARAM_H1', 'PARAM_CX', 'PARAM_AL_X', 'PARAM_CY', 'PARAM_AL_Y', 'PARAM_D', 'PARAM_H2', 'PARAM_F', 'PARAM_ROT', 'PARAM_H3', 'PARAM_OPT', 'PARAM_DIR', 'PARAM_S', 'PARAM_U_S', 'PARAM_UGC', 'PARAM_DPT', 'PARAM_U_DPT', 'PARAM_UGCD', 'PARAM_H4', 'PARAM_FP', 'PARAM_FC']" new-selected="False" hidden_count="1" path="2" call="&#10;(begin #sub_name)&#10;(circle from center author : Fernand Veilleux)&#10;o&lt;#self_id_active&gt; if [#param_act] (if enabled)&#10;&#9;o&lt;select&gt; CALL [33] [#param_al_x] [#param_d * #&lt;_units_radius&gt; / 2] [0] [-#param_d * #&lt;_units_radius&gt; / 2]&#10;&#9;o&lt;select&gt; CALL [34] [#param_al_y] [-#param_d * #&lt;_units_radius&gt; / 2] [0] [#param_d * #&lt;_units_radius&gt; / 2]&#10;&#10;&#9;o&lt;circle&gt; CALL [#param_cx + #33] [#param_cy + #34] [#param_d * #&lt;_units_radius&gt;] [#param_f * #&lt;_units_radius&gt;] [#param_rot] [#param_opt] [#param_dir] [#&lt;pl_cut_start&gt;] [#&lt;surface&gt;] [#&lt;bottom&gt;] [#param_pv]&#10;o&lt;#self_id_active&gt; endif" definitions="" icon="circle.png" type="circle" id="circle_001" before="">
    <param name="Active" value="1" call="#param_act" path="2:0" type="bool" icon="enable.png"/>
    <param name="Show design" value="1" call="#param_pv" path="2:1" type="bool" icon="glasses.png"/>
    <param type="sub-header" call="#param_h1" name="Coords, size" path="2:2"/>
    <param tool_tip="Center of circle" name="cX" metric_value="0.0" value="0.0" header="h1" call="#param_cx" path="2:2:0" type="float" icon="center.png"/>
    <param tool_tip="Define X reference point" name="X axis align" value="1" header="h1" call="#param_al_x" path="2:2:1" type="combo" options="Left=0:Center=1:Right=2" icon="align-x.png"/>
    <param tool_tip="Center of circle" name="cY" metric_value="0.0" value="0.0" header="h1" call="#param_cy" path="2:2:2" type="float" icon="center.png"/>
    <param tool_tip="Define Y reference point" name="Y axis align" value="1" header="h1" call="#param_al_y" path="2:2:3" type="combo" options="Top=0:Center=1:Bottom=2" icon="align-y.png"/>
    <param tool_tip="Diameter" no_zero="1" name="Diameter" metric_value="45" value="1.5" header="h1" call="#param_d" path="2:2:4" icon="diameter.png" type="float" minimum_value="0.0"/>
    <param type="sub-header" hidden="2" call="#param_h2" name="D flat" path="2:3"/>
    <param tool_tip="Height to remove from diameter" name="Remove" metric_value="0.0" value="0" header="h2" call="#param_f" path="2:3:0" minimum_value="0.0" type="float" icon="d-flat.png"/>
    <param digits="2" tool_tip="Rotation of flat" suffix="&amp;#176;" value="0.0" header="h2" call="#param_rot" path="2:3:1" icon="angle.png" type="float" name="Rotation"/>
    <param type="sub-header" call="#param_h3" name="Cutting" path="2:4"/>
    <param tool_tip="Select tool path" name="Option" value="0" header="h3" call="#param_opt" path="2:4:0" type="combo" options="Inside=0:On the line=2:Outside=3" icon="g4x.png"/>
    <param tool_tip="Direction of path" name="Direction" value="2" header="h3" call="#param_dir" path="2:4:1" type="combo" options="Clockwise=2:Counter-Clockwise=3" icon="cw-ccw.png"/>
  </feature>
  <feature src="plasma/polygon.cfg" expanded="False" help="&lt;b&gt;Create a Polygon with n edges&lt;/b&gt;" name="Polygon" old-selected="False" after="" order="['PARAM_ACT', 'PARAM_PV', 'PARAM_H1', 'PARAM_CX', 'PARAM_CY', 'PARAM_H10', 'PARAM_N', 'PARAM_R', 'PARAM_ROT', 'PARAM_H3', 'PARAM_OPT', 'PARAM_DIR']" hidden_count="0" new-selected="False" path="3" call="&#10;(begin #sub_name)&#10;(polygon of #param_n edges author : Fernand Veilleux)&#10;o&lt;#self_id_active&gt; if [#param_act] (if enabled)&#10;&#9;o&lt;polygon&gt; CALL [#param_cx] [#param_cy] [#param_n] [#param_r * #&lt;_units_radius&gt;] [#param_rot] [#param_opt] [#param_dir] [#&lt;pl_cut_start&gt;] [#&lt;surface&gt;] [#&lt;bottom&gt;] [#param_pv]&#10;o&lt;#self_id_active&gt; endif" definitions="" icon="hexagon.png" type="polygon" id="polygon_001" before="">
    <param name="Active" value="1" call="#param_act" path="3:0" type="bool" icon="enable.png"/>
    <param name="Show design" value="1" call="#param_pv" path="3:1" type="bool" icon="glasses.png"/>
    <param type="sub-header" call="#param_h1" name="Coords" path="3:2"/>
    <param tool_tip="Polygon center X" name="cX" metric_value="0.0" value="0" header="h1" call="#param_cx" path="3:2:0" type="float" icon="center.png"/>
    <param tool_tip="Polygon center Y" name="cY" metric_value="0.0" value="0" header="h1" call="#param_cy" path="3:2:1" type="float" icon="center.png"/>
    <param type="sub-header" call="#param_h10" name="Size, rotation" path="3:3"/>
    <param tool_tip="Number of edges" name="Edges count" maximum_value="360" value="6" header="h10" call="#param_n" path="3:3:0" icon="num.png" type="int" minimum_value="3"/>
    <param tool_tip="Radius" no_zero="1" name="Radius" metric_value="25" value="1" header="h10" call="#param_r" path="3:3:1" icon="hexagon-rad.png" type="float" minimum_value="0.0"/>
    <param digits="2" tool_tip="Start angle" suffix="&amp;#176;" value="0" header="h10" call="#param_rot" path="3:3:2" icon="angle.png" type="float" name="Rotation"/>
    <param type="sub-header" call="#param_h3" name="Cutting" path="3:4"/>
    <param tool_tip="Select tool path" name="Option" value="3" header="h3" call="#param_opt" path="3:4:0" type="combo" options="Inside=0:On the line=2:Outside=3" icon="g4x.png"/>
    <param tool_tip="Direction of path" name="Direction" value="3" header="h3" call="#param_dir" path="3:4:1" type="combo" options="Clockwise=2:Counter-Clockwise=3" icon="cw-ccw.png"/>
  </feature>
</lcnc-ncam>
